SUMMARY = "phytium OEM IPMI commands"
DESCRIPTION = "phytium OEM IPMI commands"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"

SRC_URI = "git://gitee.com/ourbmc/phytium-ipmi-oem.git;protocol=ssh;branch=master"
SRCREV = "8837920ebf36fbede0fccf89286d39904cf7b9d7"

PV = "1.0+git${SRCPV}"

S = "${WORKDIR}/git"

DEPENDS = "boost phosphor-ipmi-host phosphor-logging arm-libcper json-c"

inherit cmake obmc-phosphor-ipmiprovider-symlink

EXTRA_OECMAKE="-DYOCTO=1"

LIBRARY_NAMES = "libphytiumoemcmds.so"

HOSTIPMI_PROVIDER_LIBRARY += "${LIBRARY_NAMES}"
NETIPMI_PROVIDER_LIBRARY += "${LIBRARY_NAMES}"

FILES:${PN}:append = " ${libdir}/ipmid-providers/lib*${SOLIBS}"
FILES:${PN}:append = " ${libdir}/host-ipmid/lib*${SOLIBS}"
FILES:${PN}:append = " ${libdir}/net-ipmid/lib*${SOLIBS}"
FILES:${PN}-dev:append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV}"
